package com.hongye.proprietary.fegin;


import com.hongye.common.entity.LeaseHomeEntity;
import com.hongye.common.entity.SaleHomeEntity;
import com.hongye.common.utils.R;
import com.hongye.proprietary.entity.HongyeOrderEntity;
import com.hongye.proprietary.vo.CoverImgVo;
import com.hongye.proprietary.vo.ExamineHomeVo;
import com.hongye.proprietary.vo.HouseImgVo;
import com.hongye.proprietary.vo.IndoorImgVo;
import com.hongye.proprietary.vo.OutdoorImgVo;
import com.hongye.proprietary.vo.RequirementVo;
import com.hongye.proprietary.vo.SaleHomeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("hongye-house")
public interface HouseFegin {
    @RequestMapping("house/salehome/salelist/{houseagent}")
    List<SaleHomeEntity> salelist(@PathVariable("houseagent")Integer houseagent);


    @RequestMapping("house/leasehome/rentinglist/{houseagent}")
    List<LeaseHomeEntity> rentinglist(@PathVariable("houseagent")Integer houseagent);


    //添加需求表
    @RequestMapping("house/requirement/save")
    public R saveRequirement(@RequestBody RequirementVo requirementVo);

    @RequestMapping("house/examinehome/save")
    public R saveExamine(@RequestBody ExamineHomeVo examineHome);

    @RequestMapping("house/salehome/save")
    public R save(@RequestBody SaleHomeVo saleHomeVo);

    @RequestMapping("house/coverimg/save")
    public R saveCoverImg(@RequestBody CoverImgVo coverImg);

    @RequestMapping("house/houseimg/save")
    public R saveHouseImg(@RequestBody HouseImgVo houseImg);

    @RequestMapping("house/indoorimg/save")
    public R saveIndoorImg(@RequestBody IndoorImgVo indoorImg);

    @RequestMapping("house/outdoorimg/save")
    public R saveOutdoorImg(@RequestBody OutdoorImgVo outdoorImg);

    @RequestMapping("house/examinehome/closeExamine")
    public R closeExamine(@RequestBody HongyeOrderEntity hongyeOrderEntity);


}
